package homework3;

import java.util.HashMap;
import java.util.Map;
//Paper类   考卷类  
//属性：若干试题
//提示：试题采用HashMap存放，key为String，表示题号，value为试题对象
public class Paper {
	private HashMap<String, Question> paper = new HashMap<String, Question>();

	public HashMap<String, Question> getPaper() {
		return paper;
	}

	public void setPaper(HashMap<String, Question> paper) {
		this.paper = paper;
	}
	
	public Map<String, Question> addQuestion(Question q){
		paper.put(q.getId(), q);
		return paper;
	}
}
